Universal Viewer (ATViewer)
Contents
Description
Universal Viewer (ATViewer) is a multi-format file viewer, similar to
Total Commander Lister,
but it supports much more file formats than Lister (without plugins).
Supported view modes and corresponding file formats are:
- Text/Binary/Hex/Unicode: all files (unlimited size)
- RTF: RTF/ UTF-8 encoded files
- Images: BMP/ JPG/ ICO/ GIF/ PNG/ WMF/ TGA/ TIFF/ PCX/ PSD/ etc
- Multimedia: all file types supported by MS Windows Media Player (AVI/ MPG/ WMV/ MP3/ etc)
- Internet/Office: all file types supported by MS Internet Explorer (HTML/ XML/ DOC/ XLS/ etc)
- Plugins: files supported by Total Commander Lister plugins
Program is fully Unicode compatible and can be integrated into Windows Explorer's context menu,
so there is no problem to call it from anywhere in Explorer:
right-click on a file and select "Universal Viewer" item.
It can also be integrated into file managers that can pass to Viewer filenames via the command-line:
in this case filename should be passed as first command parameter.
See also:
Command-line parameters
The following command-line parameters are supported:
- FileName -- Name of file to open at startup. Don't forget to double-quote name containing spaces.
- @ListName -- Name of temporary text file containing list of several file names to open.
After successful reading, this file will be deleted.
For example, in Total Commander, in the toolbar button properties, enter "@%L" into Parameters field.
- /Pos=NNNN -- File position to scroll to. NNNN should be a valid number (absolute position)
or a number with trailing 'p' char (relative position in percents).
Absolute position is valid only in text/Internet modes, while relative position is valid
in text/Internet/Plugins modes.
Hidden options
Program has several "hidden" options that cannot be changed through configuration dialogs.
They must be changed by manual editing Viewer.ini file.
You can quickly open this file using
UV command "Options -- Advanced -- Manually edit configuration file".
After that you must restart program for changes will take effect.
- [Options] FileNextMsg -
"File -- Next/Previous file" commands:
If set to 0, it disables messages about first/last file in a directory.
- [Options] FileSortOrder -
"File -- Next/Previous file" commands:
Files sort order: 0 - sort by extension (default); 1 - sort by name.
- [Options] FileSkipHidden -
"File -- Next/Previous file" commands:
If set to 0, hidden files will not be skipped while going through a directory.
- [Options] TextMaxLength -
Sets maximal line length in Text mode. Default value is 300, but you may
set bigger value up to 2048 (bigger values will slow down file reading a little).
- [Options] TextMaxClipboardDataSizeMb -
Sets maximal data size, in Mb, for copying to Clipboard in Text/Binary/Hex/Unicode modes.
Default value is 16 (Mb), which prevents visual "hanging" when too large block is
selected accidentally before copying.
- [Options] TextScrollPageSize -
If set to 0, Text mode will have scrollbar of fixed
(instead of variable) size.
- [Options] MediaAutoAdvance -
By default, when UV is run with @FileList parameter and several media clips are
present in the file list, these clips are played in "playlist mode": one after another.
If this option is set 0, it will disable "playlist auto advance", so you'll have to
manually run "File -- Next file" command to advance playlist.
- [Options] WebAcceptAllFiles -
If set to 1, it enables "File Download" MSIE dialog.
You should not enable it, unless you want to try to open all file types in Internet mode.
- [Options] ModeUndetected -
This is number of mode used for unknown file types. It is 1 (Text mode) by default, but you may
change it to 2 (Binary), 3 (Hex) or 8 (RTF/UTF-8).
- [Options] ModesDisabledForDetect -
This is list of modes numbers (from 1 to 8, separated by spaces),
which will be disabled for mode auto-detection procedure.
For example, if this list is "5 7 8", then Internet, Plugins and RTF/UTF-8 modes
will not be used for mode auto-detection procedure.
- [Options] SearchNoErrorMessage -
If set to 1, no message box "Search string not found" will be displayed,
error beep will be played instead.
Additionally, after that beep, you can press F3 to repeat search from the beginning/ending of the document.
- [Options] SearchNoNextConfirm -
If set to 1, it's allowed to continue search (F3) immediately after Viewer start,
using the previously saved search options. If it's not set, search dialog will be displayed once
to confirm options.
- [Options] ShowMenuIcons -
If set to 1, icons in the main menu will be shown.
- [Options] ShowStatusBarOnMedia -
If set to 0, status bar will not be shown in Multimedia mode (when media clips are loaded).
- [Shortcuts] <MenuItem> - Changes shortcut for given menu item.
These can be configured in Options dialog now, but if you cannot assign some hotkey using dialog, you
can set it by manually editing one of these keys.
Available keys: Space BkSp Tab Esc Enter PgUp PgDn Home End Left Right Up Down Ins Del A...Z F1...F12.
Available key modifiers: Shift+ Ctrl+ Alt+.
Making custom Universal Viewer distributive
You may freely redistribute Universal Viewer (ATViewer) application with your own
saved settings. Additionally, if Lister plugins authors give your such permission,
you can also include preinstalled plugins into your package. It's recommended but not required
to include also default readme and language files.
Here is a tip helping to create you a custom UV package with plugins.
Program sets %ATViewer% environment variable on start, which refer to
a folder from UV is run.
Use this variable to store relative file paths in Viewer.ini file.
So, just preinstall all needed plugins into
"Plugins" subfolder of UV folder and plug them in;
their paths should be automatically saved to Viewer.ini like this:
[ListerPlugins]
0=%ATViewer%\Plugins\OOoViewer\OOoViewer.wlx
If all plugins are preinstalled in this way, you can pack entire UV folder;
there should be no problems
in plugins usage after you unpack your distributive on a another computer.
Note about Viewer.ini file location.
By default this file is located: under Windows Vista - in the "%AppData%\ATViewer" folder;
under older Windows systems - in the UV installation folder.
You can alternate default location by using "Configuration files relocation tool",
see the link at the Description section of this Readme.
Versions history
- 1.5.10.0 (26.03.2007):
- RegEx search option in Text/Binary/Hex/Unicode modes;
to see help on RegEx syntax press Help button in search dialog
- Text modes: triple click selects current line
- Internet mode: by default all file types are accepted;
if you don't like it, change the value of WebAcceptAllFiles hidden option to 0
- Fixed "Full screen" command's work on second monitor
- Option: "Show image transparency"
- Hidden option: TextMaxClipboardDataSizeMb
- 1.5.9.0 (25.02.2007):
- Status bar (optional) with some file information
- Options "Show menu", "Show toolbar", "Show status bar" are duplicated in main menu "View -- Interface"
- Command "Options -- Advanced -- Manually edit configuration file"
- Command "View -- Image -- Fit window to image"
- Commands "View -- Zoom -- Zoom in/ Zoom out": they work with text, images and web pages
- Vista: configuration file (Viewer.ini) default location is now "%AppData%\ATViewer"
- Fixed: last selected charset (OEM/ANSI) is saved, if option "Auto-detect OEM charset" is turned off
- Image mode: image is scrollable by keyboard/ mouse wheel
- RTF/UTF-8 mode: for UTF-8 files the signature is no longer required (Note: not supported under Win9x)
- Hidden options: TextMaxLength, MediaAutoAdvance
- 1.5.8.0 (22.01.2007):
- Images printing
- Support for Total Commander 7 Lister API
- Options "Show menu", "Center image in window"
- Command "Edit - Go to" works also in Internet mode
- Command-line parameter to specify startup file position
- Support for 32-bit toolbar images
- Hidden option FileSkipHidden
- 1.5.7.0 (05.01.2007):
- New program icon by StickyNomad
- Command added: Options - Configure user tools
- Command added: File - Delete
- Text modes: file is not locked anymore, so you may delete it - in this case,
if "Auto-reload file on changing" option is on, Viewer will just close file
(Note: not supported under Win9x)
- RTF/UTF-8 mode: URLs made clickable
(Note: not supported under Win9x)
- Plugins mode: better parsing of plugins detect-strings
- Hidden options added:
FileNextMsg, WebAcceptAllFiles,
ModeUndetected, ModesDisabledForDetect, SearchNoErrorMessage, SearchNoNextConfirm
- Filelist can be passed to Viewer as a command line parameter: use '@' preceding character.
In Total Commander, in the toolbar button properties, enter "@%L" into Parameters field.
- 1.5.6.5 (18.12.2006):
- Search is implemented also in Unicode mode
- Image mode: image sizes are shown at the left-top image corner
- Image mode: image is draggable by mouse
- Text modes: mouse click marks selection start, Shift+click marks selection end
- 1.5.6.2 (26.11.2006):
- "Single instance only" option
- "Copy" command works also with images
- 1.5.6.0 (17.11.2006):
- Configurable toolbar
- Ability to plug-in external tools: see file "Readme\External Tools Configuration.html"
- Commands for images: "Fit only big images", "Rotate to the right", "Rotate to the left", "Grayscale"
- Commands for Internet mode: "Go back", "Go forward"
- 1.5.5 (03.11.2006):
- "Always on top", "Full screen" commands.
Note: don't use "Full screen" Viewer command in Windows Media Player mode, use WMP's Full Screen
command instead because it shows much more nicer display.
- "Zoom in", "Zoom out", "Original size" commands for images in Multimedia mode
- Recent files list (optional)
- Supressed "File Download" MSIE dialog when unknown file type is opened in Internet mode
- Fixed displaying of ANSI text in asian Windows versions
- 1.5.4 (02.10.2006):
- Tabulations correctly displayed in Text mode, "Tab size" option
- 1.5.3 (24.09.2006):
- "Auto-reload file" and "Follow tail" options (currently work only in Text/Binary/Hex/Unicode modes)
- "Auto-copy to clipboard" option that allows to silently copy text at the end of selection operation.
Be careful, do not press Ctrl+A on 600 Meg video clip.
- "Border" option that allows to hide border around view area
- "Hex background color" option
- Configurable shortcuts
- Disablable plugins
- "Go to" dialog improved
...
- 1.3.2 (17.06.2006):
Contacts
If you encounter problems with usage of this program,
or you have any comments/suggestions, feel free to send feedback:
Alexey Torgashin
http://atorg.net.ru
atorg@yandex.ru
Universal Viewer (ATViewer) homepage:
http://atorg.net.ru/universal_viewer/